package com.mike.employment.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mike.employment.base.BaseDao;
import com.mike.employment.base.BaseServiceImpl;
import com.mike.employment.dao.RoleDao;
import com.mike.employment.po.Role;
import com.mike.employment.service.RoleService;

import jakarta.persistence.EntityManager;
import jakarta.persistence.PersistenceContext;

@Service
public class RoleServiceImpl extends BaseServiceImpl<Role> implements RoleService{
	
	@Autowired
	private RoleDao roleDao;
	@PersistenceContext
	private EntityManager entityManager;
	
	@Override
	public BaseDao<Role> getRepository() {
		return roleDao;
	}

	@Override
	public EntityManager getEntity() {
		return entityManager;
	}

}
